$(function() {
        initSelect("tagKeySelect");

initTable();
});

function initSelect(id) {
        $('#'+id).chosen();
}

/**
* 初始化表格
*/
function initTable() {
$('#tracelogTagTable').DataTable({
language: Language,
columns: [
        {
        "data": "traceId",
        "title": "主链路ID",
        },
        {
        "data": "tagKey",
        "title": "标签建"
        },
        {
                "data": "tagValue",
                "title": "标签值"
        },
        {
                "data": "traceStartTime",
                "title": "链路开始时间"
        },
        {
                "data": "traceEndTime",
                "title": "链路结束时间"
        }
],
dom: 'rt<"bottom"ilp><"clear">',
destroy : true,
searching: false,
processing : true,
serverSide: false,
bSort: false,
autoWidth: false,
lengthMenu: [100],

ajax: {
type: "post",
contentType: "application/json",
url: searchUrl,
dataFilter: dataListFilterFunc,
data: function(param) {
        let json = $("#tracelogTagForm").serializeObject()
return JSON.stringify(json)
},
error: errorFunc
}
});
}

/**
* 查询
*/
function search() {
reloadTable('tracelogTagTable');
}







